package com.tuling.netty.command;

import io.netty.channel.ChannelHandlerContext;

public class AuditCmdHandler implements CmdHandler<AuditCmd> {
    @Override
    public boolean supports(Cmd cmd) {
        return cmd instanceof AuditCmd;
    }

    @Override
    public void handle(ChannelHandlerContext ctx, AuditCmd cmd) {
        System.out.println(cmd.getContent());
    }
}
